package com.yywq.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yywq.pojo.Goods;
import io.lettuce.core.dynamic.annotation.Param;
import org.springframework.stereotype.Repository;

/**
 * @author: 吴磊
 * @program: yywq
 * @create: 2021-03-20 22:17
 */
@Repository
public interface GoodsMapper extends BaseMapper<Goods> {
    /**
     * 通过商品id获取商品
     *
     * @param id
     * @return
     */
    Goods getGoodsById(@Param("id") String id);
}
